import java.awt.Container;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.util.HashMap;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.GroupLayout.ParallelGroup;
import javax.swing.GroupLayout.SequentialGroup;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.LayoutStyle.ComponentPlacement;

class AutoSmith$Gui extends JFrame
{
  private final String[] bars = new String[AutoSmith.access$000().length];
  private final String[] locations = new String[AutoSmith.access$100().length];
  private HashMap<String, AutoSmith.SMLoc> locMap = new HashMap();
  private HashMap<String, AutoSmith.Materials> matMap = new HashMap();
  private JButton jButton1;
  private JComboBox jComboBox1;
  private JComboBox jComboBox2;
  private JLabel jLabel1;
  private JLabel jLabel2;
  private JLabel jLabel3;

  public AutoSmith$Gui()
  {
    initComponents();
  }

  private void initComponents()
  {
    AutoSmith.access$202(true);
    for (int i = 0; i < AutoSmith.access$000().length; i++) {
      this.bars[i] = AutoSmith.access$000()[i].name;
      this.matMap.put(this.bars[i], AutoSmith.access$000()[i]);
    }
    for (i = 0; i < AutoSmith.access$100().length; i++) {
      this.locations[i] = AutoSmith.access$100()[i].name;
      this.locMap.put(this.locations[i], AutoSmith.access$100()[i]);
    }

    this.jLabel1 = new JLabel();
    this.jLabel2 = new JLabel();
    this.jComboBox1 = new JComboBox();
    this.jLabel3 = new JLabel();
    this.jComboBox2 = new JComboBox();
    this.jButton1 = new JButton();

    setDefaultCloseOperation(2);

    this.jLabel1.setFont(new Font("Tahoma", 0, 18));
    this.jLabel1.setText("AutoSmither");

    this.jLabel2.setText("Where:");

    this.jComboBox1.setModel(new DefaultComboBoxModel(this.locations));

    this.jLabel3.setText("Type:");

    this.jComboBox2.setModel(new DefaultComboBoxModel(this.bars));

    this.jButton1.setText("START");
    this.jButton1.addActionListener(new AutoSmith.Gui.1(this));

    GroupLayout localGroupLayout = new GroupLayout(getContentPane());

    getContentPane().setLayout(localGroupLayout);
    localGroupLayout.setHorizontalGroup(localGroupLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(localGroupLayout.createSequentialGroup().addGroup(localGroupLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(localGroupLayout.createSequentialGroup().addGap(147, 147, 147).addComponent(this.jLabel1)).addGroup(localGroupLayout.createSequentialGroup().addGap(37, 37, 37).addGroup(localGroupLayout.createParallelGroup(GroupLayout.Alignment.LEADING, false).addGroup(localGroupLayout.createSequentialGroup().addComponent(this.jLabel3).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(this.jComboBox2, 0, -1, 32767)).addGroup(localGroupLayout.createSequentialGroup().addComponent(this.jLabel2).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(this.jComboBox1, -2, 86, -2)))).addGroup(localGroupLayout.createSequentialGroup().addContainerGap().addComponent(this.jButton1, -1, 352, 32767))).addContainerGap()));

    localGroupLayout.setVerticalGroup(localGroupLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(localGroupLayout.createSequentialGroup().addContainerGap().addComponent(this.jLabel1).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(localGroupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.jLabel2).addComponent(this.jComboBox1, -2, -1, -2)).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(localGroupLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.jLabel3).addComponent(this.jComboBox2, -2, -1, -2)).addGap(26, 26, 26).addComponent(this.jButton1, -1, 43, 32767).addContainerGap()));

    pack();
  }

  private void jButton1ActionPerformed(ActionEvent paramActionEvent)
  {
    AutoSmith.access$402((AutoSmith.SMLoc)this.locMap.get(this.jComboBox1.getSelectedItem().toString()));
    AutoSmith.access$502((AutoSmith.Materials)this.matMap.get(this.jComboBox2.getSelectedItem().toString()));
    AutoSmith.access$202(false);
    setVisible(false);
  }
}